Skip to content

Conversation

@husigeza
Copy link
Contributor

@husigeza husigeza commented Dec 4, 2019

Fixes for the review findings here: e2eca78

@husigeza husigeza requested review from jirkadev and lilycey December 4, 2019 17:06
@husigeza husigeza changed the title Addressing review findings CoAp: Addressing review findings Dec 4, 2019
Copy link
Contributor

@lilycey lilycey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only three tiny changes

event = s[1]
if(event & uselect.POLLIN):
# Check if the socket belongs to Coap module
# Check if the socket belongs to CoAp module
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First comment: Check if the socket belongs to the CoAp module

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

wlan.connect('your-ssid', auth=(WLAN.WPA2, 'your-key'))

# Initialize Coap module
# Initialize CoAp module
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second comment: # Initialise the CoAp module

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

# Initialize CoAp module
Coap.init(str(wlan.ifconfig()[0]), service_discovery=True)

# Add a resource with default value and plain text content format
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Third: Add a resource with a default value and a plain text content format

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@husigeza husigeza requested a review from lilycey December 7, 2019 07:32
Copy link
Contributor

@lilycey lilycey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good to me!

@husigeza husigeza merged commit 7196a81 into pycom:development-publish Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants